<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:113:"/Applications/MAMP/htdocs/2020-08/school_activity_registration/public/../application/home/view/index/content.html";i:1596420793;s:96:"/Applications/MAMP/htdocs/2020-08/school_activity_registration/application/home/view/layout.html";i:1596420793;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广东环境保护工程职业学院</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <script src="/static/js/jquery.js"></script>
    <script src="/static/js/home.js"></script>
    <link rel="stylesheet" href="/static/css/home.css">
</head>
<body>
<!--PC端-->
<!--大盒子-->
<div id="container">
    <!--头部-->
<header>
    <div id="top-left"></div>
    <div id="top-right">
        <ul>
            <?php if(\think\Request::instance()->session('info.name')): ?>
            <li><a href="<?php echo url('center'); ?>"><?php echo \think\Request::instance()->session('info.name'); ?>,欢迎您</a></li>
            <li><a href="<?php echo url('center'); ?>">个人中心</a></li>
            <li><a href="<?php echo url('find'); ?>?type=1">找回密码</a></li>
            <li><a href="<?php echo url('logout'); ?>">退出</a></li>
            <?php else: ?>
            <li><a href="<?php echo url('login'); ?>?type=1">用户登陆</a></li>
            <li><a href="<?php echo url('register'); ?>?type=1">用户注册</a></li>
            <li><a href="<?php echo url('find'); ?>?type=1">找回密码</a></li>
            <?php endif; ?>

        </ul>

    </div>
</header>
    <!--主页行-->
    <div id="firstpage"><a href="<?php echo url('index'); ?>">主 页</a></div>

<section>
    <div id="left">
        <div id="content">
    <?php switch($type): case "1": foreach($preject as $v): ?>
    <div id="content-title">
        <p><?php echo $v['title']; ?></p>
        <a>发布时间:<?php echo substr($v['time'],0,10); ?></a>&nbsp;&nbsp;&nbsp;<a>截止时间：<?php echo substr($v['endtime'],0,10); ?></a>&nbsp;&nbsp;&nbsp;<a>举办部门：<?php echo $v['apartment']; ?></a>
    </div>
    <div id="content-info">
        <?php echo $v['content']; ?>
      <div id="confirm"><a onclick="con(1,'<?php echo $v['id']; ?>')">个人报名</a></div>
        <!--<a  onclick="con(2,'<?php echo $v['id']; ?>')">团队报名</a>-->
    </div>
    <?php endforeach; break; case "2": foreach($notice as $v): ?>
    <div id="content-title">
        <p><?php echo $v['title']; ?></p>
        <a>发布时间:<?php echo substr($v['time'],0,10); ?></a>
    </div>
    <div id="content-info">
        <?php echo $v['content']; ?>
    </div>
    <?php endforeach; break; case "3": foreach($question as $v): ?>
    <div id="content-title">
        <p><?php echo $v['title']; ?></p>
        <a>发布时间:<?php echo substr($v['time'],0,10); ?></a>
    </div>
    <div id="content-info">
        <?php echo $v['content']; ?>

    </div>
    <?php endforeach; break; endswitch; ?>

</div>


    </div>
    <div id="right">
       <div id="up">
           <div id="rightop">公告</div>
           <ul>
               <?php foreach($notice as $v): ?>
               <li><a href="<?php echo url('content'); ?>?id=<?php echo $v['id']; ?>&type=2"><?php echo substr($v['title'],0,48); ?></a><span><?php echo substr($v['time'],0,10); ?></span></li>
               <?php endforeach; ?>
           </ul>

       </div>
        <div id="down">
            <div id="rightop">常见问题</div>
            <ul>
                <?php foreach($question as $v): ?>
                <li><a href="<?php echo url('content'); ?>?id=<?php echo $v['id']; ?>&type=3"><?php echo substr($v['title'],0,48); ?></a><span><?php echo substr($v['time'],0,10); ?></span></li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
</section>
    <footer>
        <p>广东环境保护工程职业学院</p>
            <p><a style="color: #737677" href="<?php echo url('@admin'); ?>">版权所有©2018</a></p>
    </footer>
</div>

</body>
</html>
